#ifndef HM_GRIDVIEW_H_
#define HM_GRIDVIEW_H_

/*
 * William
 * preview container for grid view
*/

#include <html\htmlcontrol.h> 
#include <html\htmlctlevent.h>
#include <html\lirenderer.h>
#include "data.h"
class CHtmlControl;

class ChmGridView : public MListItemRenderer
{
friend class CMyDataCenter;	
public:
	ChmGridView();
	virtual ~ChmGridView();
	bool ProcessTabChange(bool bNextPrev);
	void ClearData();

	void ParsePage(CHtmlControl* aControl);
    void RenderListItemL(CHtmlElement* aElement, TInt aIndex);
    void HandleHtmlCtlEventL(const THtmlCtlEvent& aEvent);
private:
	void LoadContact();
	void LoadMainGrid();	
	void ShowTabsChange();
	int iImageNum;
	int iSelected;
	int iLargeImgOrderId; //正在浏览的大图的索引
	
	CHtmlControl* iControl; //just a pointer
	RAppGridArray iGridViewData;	
};

#endif /*HM_GRIDVIEW_H_*/
